package com.koi.classservice.controller;


import com.koi.classservice.domain.po.Course;
import com.koi.classservice.service.ICourseScheduleService;
import com.koi.classservice.service.ICourseService;
import com.koi.mccommon.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 教室预约信息 前端控制器
 * </p>
 *
 * @author koi
 * @since 2025-04-08
 */
@RestController
@RequestMapping("/course")
public class CourseController {

    @Autowired
    private ICourseService courseService;

    @PostMapping("/addCourse")
    public Result addCourse(@RequestBody Course course) {
        courseService.save(course);
        return Result.success();
    }

}
